﻿@model Quester.Models.TeacherCreateVModel

@{
    ViewBag.Title = "AdminCreate";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<h2>
    Створити нового викладача</h2>


@using(Html.BeginForm())
{    
<h2>@Html.ValidationMessageFor(m => m.Password)</h2>
<h2>@Html.ValidationMessageFor(m => m.RepeatPass)</h2>
    @Html.ValidationSummary(true)
<table class="editForm">
    <tbody>
        <tr>
            <th>@Html.LabelFor(m => m.Login)
            </th>
            <td>@Html.EditorFor(m => m.Login)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Password)
            </th>
            <td>@Html.PasswordFor(m => m.Password)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.RepeatPass)
            </th>
            <td>@Html.PasswordFor(m => m.RepeatPass)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.EMail)
            </th>
            <td>@Html.EditorFor(m => m.EMail)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.LastName)
            </th>
            <td>@Html.EditorFor(m => m.LastName)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Name)
            </th>
            <td>@Html.EditorFor(m => m.Name)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.FatherName)
            </th>
            <td>@Html.EditorFor(m => m.FatherName)
            </td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.Kafedra)
            </th>
            <td>@Html.EditorFor(m => m.Kafedra)
            </td>
        </tr>
        <tr>
            <th><input type="submit" value="Створити" class="ActButton"/>
            </th>
            <td class="ActButton">@Html.ActionLink("Відміна", "AdminList")
            </td>
        </tr>
    </tbody>
</table>
}
